package com.woniuxy.book.service;

import com.woniuxy.book.entity.PageInfo;
import com.woniuxy.book.entity.UserAddress;
import com.woniuxy.book.param.useraddress.AddAddressParam;
import com.woniuxy.book.param.useraddress.UpdateAddressParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author li
 * @since 2024年2月09日
 */
public interface UserAddressService{

    UserAddress findDefaultAddress(Integer userId);

    void addAddress(AddAddressParam param);

    List<UserAddress> selectAddress(Integer userId);

    UserAddress findAddress(Integer addressId, Integer userId);

    PageInfo selectAddressPage(Integer pageNum, Integer pageSize, Integer userId);

    void changeAddressState(Integer addressId, Integer addressState, Integer userId);

    void updateAddress(UpdateAddressParam param);

    void delAddress(Integer addressId, Integer userId);
}
